<template>
  <div>


  </div>
</template>


<script>
import * as echarts from 'echarts'
export default {
  name: 'Workbench',
  data() {
    return {
      star: 2.5
    }
  },
  mounted() {
    this.initEcharts()
  },
  components:{
  },
  methods: {
    // getchartsData() {
    //   getChartsDetail().then(res=> {
    //     this.initEcharts(data)
    //   }).catch(error=>{
    //         console.log(error)
    //   });
    // },
    initEcharts() {
      let myChart = echarts.init(this.$refs.lineChart)
      let option = {
        xAxis: {
          type: 'category',
          data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
          type: 'value'
        },
        series: [{
          data: [120, 200, 150, 80, 70, 110, 130],
          type: 'line',
          showBackground: true,
          backgroundStyle: {
            color: 'rgba(180, 180, 180, 0.2)'
          }
        }]
      }
      myChart.setOption(option)
    }
  }

}
</script>
